package com.service;

import com.bean.Owner;
import com.dao.impl.OwnerDAOImpl;

import java.sql.SQLException;
import java.util.List;

public interface OwnerService {


     List<Owner> selectAll() throws SQLException;

     List<Owner> selectById(String id) throws SQLException ;
     boolean deleteById(Integer id) throws SQLException;

     boolean removeAll(String[] idsArr) throws SQLException ;

     boolean insert(Owner o) throws SQLException ;

     boolean update(Owner o) throws SQLException;


     Integer count() throws SQLException ;

     Integer countSearch(String search) throws SQLException;


     List<Owner> selectAllPagination(Integer offset, Integer limit) throws SQLException ;

     List<Owner> selectAllPaginationSearch(Integer offset, Integer limit, String search) throws SQLException;

}